<?php
/**
 * Test runner for XJConf.
 *
 * @author  Frank Kleine <mikey@xjconf.net>
 */
require_once dirname(__FILE__) . '/../simpletest/reporter.php';
require_once dirname(__FILE__) . '/../XJConf/XJConfLoader.php';
require_once 'definitions/DefinitionsTestSuite.php';
/**
 * Test runner for XJConf.
 *
 * @package     XJConf
 * @subpackage  test
 */
class XJConfTestRunner
{
    public function main()
    {
        $test = new DefinitionsTestSuite();
        if (PHP_SAPI == 'cli') {
            $reporter = new TextReporter();
        } else {
            $reporter = new HtmlReporter();
        }
        $test->run($reporter);
    }
}
XJConfTestRunner::main();
?>